-- GENERATED SPELL FOR [Onslaught Gryphon Rider] --


function spell0_29333(pUnit, Event) --@Throw Spear,n/a--
pUnit:FullCastSpellOnTarget(54617,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29333', 2500, 1)
end

function spell1_29333(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(40652,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29333', 10317, 1)
end

function Sorts_29333(pUnit, Event)
local choix_sorts_29333 = math.random(0, 1)
if choix_sorts_29333 == 0 then
pUnit:RegisterEvent('spell0_29333', 1, 1)
end
if choix_sorts_29333 == 1 then
pUnit:RegisterEvent('spell1_29333', 1, 1)
end
end

function mob29333_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29333', math.random(1500, 3000), 1)
end

function mob29333_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29333_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29333_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29333, 1, 'mob29333_Action')
RegisterUnitEvent(29333, 2, 'mob29333_Leave')
RegisterUnitEvent(29333, 3, 'mob29333_Kill')
RegisterUnitEvent(29333, 4, 'mob29333_Die')
